#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QtGui>
#include <QtCore>


namespace Ui {
    class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

    //void contextMenuEvent(QContextMenuEvent* event);

public slots:

    void contextMenu(const QPoint& pos);
    void showAbout();


private:

    Ui::MainWindow *ui;

    QGraphicsScene* scene;

    QMenu* fileMenu;
    QMenu* editMenu;
    QMenu* viewMenu;
    QMenu* helpMenu;
    QMenu* insertMenu;

    QAction* saveRsAct;
    QAction* saveCsAct;
    QAction* saveAsAct;
    QAction* exportAct;
    QAction* exitAct;

    QAction* insCategoryAct;
    QAction* insResourceAct;
    QAction* insDependancyAct;
    QAction* editDependancyAct;
    QAction* delDependancyAct;
    QAction* insTechItemAct;
    QAction* delTechItemAct;
    QAction* editTechItemAct;
    QAction* listItemsAct;
    QAction* aboutAct;

};

#endif // MAINWINDOW_H
